package TestSecond.view;


import TestSecond.service.AccountService;

/*
    转账的页面:
        调用service层
 */
public class AccountPage {
    public static void main(String[] args) {
        String inName = "jerry";
        String outName = "tom";
        double transferMoney = 1000;

        //调用service层
        //创建AccountService类的对象
        AccountService service = new AccountService();

        //AccountService类的对象调用transfer方法,完成转账
        service.transfer(inName,outName,transferMoney);
    }
}
